#!/usr/bin/bash

export success="[ \e[93m✔\e[0m ]"
export errors="[ \e[31m✘\e[0m ]"

cp ../script/main.sh .
[ -e main.sh ] && echo -e "$success Script has been copy" || ( echo -e "$errors Error, file dont copyed"; exit 2 )

echo "Building docker file"
docker network create docker_docker-localhost

docker-compose up -d || echo -e "$errors Error in build the docker image" && exit 2

rm -rf main.sh
echo "Run: docker run -it <image> /bin/bash"
